public class Car {
    private String engine;
    private String seat;
    private String tyre;

    public String getEngine() {
        return engine;
    }

    public void setEngine(String engine) {
        this.engine = engine;
    }

    public String getSeat() {
        return seat;
    }

    public void setSeat(String seat) {
        this.seat = seat;
    }

    public String getTyre() {
        return tyre;
    }

    public void setTyre(String tyre) {
        this.tyre = tyre;
    }
    public String toString(){
        return "引擎:"+this.getEngine()+"\n坐椅:"+this.getSeat()+"\n轮胎:"+this.getTyre();
    }
}
